package com.hopedove.yieldmanage.activity;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.LinearLayout;

import com.hopedove.base.BaseActivity;
import com.hopedove.yieldmanage.R;


public class YieldMainActivity extends BaseActivity {


    private LinearLayout input_Ll;
    private LinearLayout query_Ll;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.yield_main_activity);
        initView();
    }

    private void initView() {
        input_Ll = findViewById(R.id.main_input_Ll);
        query_Ll = findViewById(R.id.main_query_Ll);
        input_Ll.setOnClickListener(v -> {
            Intent intent = new Intent(YieldMainActivity.this, YieldInputActivity.class);
            startActivity(intent);
        });


        query_Ll.setOnClickListener(v -> {
            Intent intent = new Intent(YieldMainActivity.this, YieldQueryActivity.class);
            startActivity(intent);

        });

        findViewById(R.id.chenzhong_lay).setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent = new Intent(YieldMainActivity.this, BangChengZActivity.class);
                startActivity(intent);
            }
        });

        findViewById(R.id.chengquery_lay).setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent = new Intent(YieldMainActivity.this, BangQueryActivity.class);
                startActivity(intent);
            }
        });
    }

}
